import request from '@/utils/request'

// 查询进出库记录列表
export function listInOutRecord(query) {
  return request({
    url: '/equipment/inOutRecord/list',
    method: 'get',
    params: query
  })
}

// 查询进出库记录详细
export function getInOutRecord(id) {
  return request({
    url: '/equipment/inOutRecord/' + id,
    method: 'get'
  })
}
// 查询进出库记录详细
export function getRecord(id) {
  return request({
    url: '/equipment/inOutRecord/getRecord/' + id,
    method: 'get'
  })
}
// 新增进出库记录
export function addInOutRecord(data) {
  return request({
    url: '/equipment/inOutRecord',
    method: 'post',
    data: data
  })
}

// 修改进出库记录
export function updateInOutRecord(data) {
  return request({
    url: '/equipment/inOutRecord',
    method: 'put',
    data: data
  })
}

// 删除进出库记录
export function delInOutRecord(id) {
  return request({
    url: '/equipment/inOutRecord/' + id,
    method: 'delete'
  })
}
